# encoding=utf-8
# author:梁子龙
from pathlib import Path
from dynaconf import Dynaconf

BASE_DIR = Path(__file__).resolve().parent.parent
# 配置对象
settings_files = [
    Path(__file__).parent / "development.yml",  # 项目目录
    # Path(__file__) / "production.yml"
]

settings = Dynaconf(
    envvar_prefix="EMP_CONF",  # 环境变量前缀
    settings_files=settings_files,
    env_switcher="EMP_ENV",  # EMP_EMV=production
    lowercase_read=False,  # 禁止小写 setting.name forbidden
    base_dir=BASE_DIR,
)
